package com.ds.rabbitmq;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//开启基于注解的MQ
@EnableRabbit
@EnableScheduling
@EnableAsync
public class Springboot2RabbitmqApplication {

	public static void main(String[] args) {
		SpringApplication.run(Springboot2RabbitmqApplication.class, args);
	}

}
